<template>
	<view>
		<view class="bg-white margin radius padding margin-bottom">
			<u-parse :html="info.stackTrace" class="text-wrap"></u-parse>
		</view>
		<view class="padding-sm"></view>
	</view>
</template>

<script>
export default {
	onLoad: function(option) {
		this.info.id = option.id || '';
		this.getRecordInfo();
	},
	onShow: function() {},
	onReady: function() {},
	onReachBottom: function() {},
	data() {
		return {
			info: {},
		};
	},
	methods: {
		getRecordInfo() {
			this.$http.get(`/admin/sys/scheduler/record/get/${this.info.id}`, {}, res => {
				this.info = res.data || this.info;
			}, false, true, true);
		}
	}
}
</script>

<style lang="scss" scoped>
	.text-wrap {
		word-wrap: break-word;
		word-break: break-all;
	}
</style>
